package cn.tedu.design;

public class TestInter {
    public static void main(String[] args) {
        CGBTeacher c=new CGBTeacher();
        ACTTeacher a=new ACTTeacher();
        c.ready();
        c.teach();
        a.ready();
        a.teach();
    }
}
interface Teacher2{
    void ready();
    void teach();
}
class CGBTeacher implements Teacher2{

    public void ready() {
        System.out.println("c备课");
    }

    public void teach() {
        System.out.println("c上课");
    }
}
class ACTTeacher implements Teacher2{

    public void ready() {
        System.out.println("a备课");
    }

    public void teach() {
        System.out.println("a上课");
    }
}